﻿<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
    <script src="~/assets/plugins/respond.min.js"></script>
    <script src="~/assets/plugins/excanvas.min.js"></script>
<![endif]-->
<script src="@Url.Action("Index", "JsParameter")"></script>
<script src="~/assets/plugins/jquery-1.10.2.min.js"></script>
<script src="~/assets/plugins/jquery-migrate-1.2.1.min.js"></script>
<script src="~/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="~/assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js"></script>
<script src="~/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="~/assets/plugins/jquery.blockui.min.js"></script>
<script src="~/assets/plugins/jquery.cokie.min.js"></script>
<script src="~/assets/plugins/uniform/jquery.uniform.min.js"></script>

<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="~/assets/plugins/fuelux/js/spinner.min.js"></script>
<script src="~/assets/plugins/ckeditor/ckeditor.js"></script>
<script src="~/assets/plugins/bootstrap-fileupload/bootstrap-fileupload.js"></script>
@*<script src="~/assets/plugins/select2/select2.min.js"></script>*@
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
@*編輯器 用法是$('.textarea').wysihtml5();*@
<script src="~/assets/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js"></script>
<script src="~/assets/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js"></script>

<script src="~/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="~/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="~/assets/plugins/clockface/js/clockface.js"></script>
<script src="~/assets/plugins/bootstrap-daterangepicker/moment.min.js"></script>
<script src="~/assets/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="~/assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
<script src="~/assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.js"></script>
<script src="~/assets/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
<script src="~/assets/plugins/jquery.input-ip-address-control-1.0.min.js"></script>
<script src="~/assets/plugins/jquery-multi-select/js/jquery.multi-select.js"></script>
<script src="~/assets/plugins/jquery-multi-select/js/jquery.quicksearch.js"></script>
<script src="~/assets/plugins/jquery.pwstrength.bootstrap/src/pwstrength.js"></script>
<script src="~/assets/plugins/bootstrap-switch/static/js/bootstrap-switch.min.js"></script>
<script src="~/assets/plugins/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script src="~/assets/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script src="~/assets/plugins/bootstrap-markdown/lib/markdown.js"></script>
<script src="~/assets/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js"></script>
<script src="~/assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js"></script>


<script src="~/assets/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="~/assets/plugins/jquery-validation/dist/additional-methods.min.js"></script>
@*Jquery.DataTables 用法$('#example').DataTable();*@
<script src="~/assets/plugins/data-tables/jquery.dataTables.min.js"></script>
<script src="~/assets/plugins/data-tables/DT_bootstrap.js"></script>
@*<script src="~/assets/plugins/ckeditor/ckeditor.js"></script>*@
@*<script src="~/assets/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
    <script src="~/assets/plugins/bootstrap-markdown/lib/markdown.js"></script>*@

<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
@*自定義的js*@
<script src="~/assets/scripts/app.js"></script>
<script src="~/assets/scripts/form-components.js"></script>
<!-- END PAGE LEVEL STYLES -->
<!--Other Js-->
<script src="~/assets/otherjs/msgBox.js"></script>
<input type="hidden" id="msgBoximg" value="~/images/" />

<!---->
<script>
    $(function () {
        window.ScreenWidth = $(window).width;
        window.ScreenHeight = $(window).heigth;
        App.init();
        window.cusImage = $('#msgBoximg').val();
        window.editors = [];
        msgBox = new MsgBox({ imgHref: cusImage });

        $('input').on('keydown', function (e) {
            if (e.keyCode == '13') {
                var form = $(this).parents('form');
                if (!!form) {
                    form.submit();
                }
            }
        });
    });

    function ajaxSuccess(ajaxMsg) {
        if (!!ajaxMsg.status) {
            if (!!ajaxMsg.url) {
                location.href = ajaxMsg.url;
            }
        }
    }

    function changeUrl(url) {
        location.href = url;
    }
</script>